package cn.terminus.data.customer.custominfo.impl;

import cn.terminus.common.customer.bean.analysis.CustomerAnalysisDto;
import cn.terminus.common.customer.bean.analysis.CustomerStageNumResultDto;
import cn.terminus.common.customer.bean.analysis.CustomerNatureIndustryNumResultDto;
import cn.terminus.common.customer.bean.analysis.CustomerStageDto;
import cn.terminus.common.customer.bean.custominfo.dto.*;
import cn.terminus.data.customer.customcontacts.mapper.CustomContactsMapper;
import cn.terminus.data.customer.custominfo.dao.CustomInfoDao;
import cn.terminus.data.customer.custominfo.mapper.CustomInfoMapper;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * (CustomInfo)表服务实现类
 *
 * @author makejava
 * @since 2021-07-08 11:18:49
 */
@Repository
public class CustomInfoDaoImpl implements CustomInfoDao {
    @Resource
    private CustomInfoMapper customInfoMapper;
    @Resource
    private CustomContactsMapper customContactsMapper;

    @Override
    public Integer add(CustomInfoNewDto dto) {
        return customInfoMapper.add(dto);
    }

    @Override
    public Integer update(CustomInfoNewDto dto) {
        return customInfoMapper.update(dto);
    }

    @Override
    public CustomInfoResultDto getDetail(CustomInfoGetsDto dto) {
        return customInfoMapper.getDetail(dto);
    }

    @Override
    public List<CustomInfoResultDto> query(CustomInfoQueryDto dto) {
        return customInfoMapper.query(dto);
    }

    @Override
    public List<CustomInfoQueryNameResultDto> queryByIds(List<Long> customerIdList) {
        return customInfoMapper.queryByIds(customerIdList);
    }

    @Override
    public GetCustomInfoByNameResultDto getDetailById(Long customerId) {
        return customInfoMapper.getDetailById(customerId);
    }

    @Override
    public Integer delete(CustomInfoDeleteDto dto) {
        return customInfoMapper.delete(dto);
    }

    @Override
    public Integer belongTo(CustomBelongtoDto customBelongtoDto) {
        return customInfoMapper.belongTo(customBelongtoDto);
    }

    @Override
    public List<GetCustomInfoByNameResultDto> getNameListByName(GetCustomInfoByNameDto dto) {
        return customInfoMapper.getNameListByName(dto);
    }

    @Override
    public List<ChannelCustomerNumberResultDto> getChannelCustomerNumber(CustomerChannelUserDto dto) {
        return customInfoMapper.getChannelCustomerNumber(dto);
    }

    @Override
    public Integer queryByCustomName(CustomInfoGetsDto dto) {
        return customInfoMapper.queryByCustomName(dto);
    }

    @Override
    public List<CustomerStageNumResultDto> analysisCustomerStage(CustomerAnalysisDto dto) {
        return customInfoMapper.analysisCustomerStage(dto);
    }

    @Override
    public List<CustomerNatureIndustryNumResultDto> analysisNature(CustomerStageDto dto) {
        return customInfoMapper.analysisNature(dto);
    }

    @Override
    public List<CustomerNatureIndustryNumResultDto> analysisIndustry(CustomerStageDto dto) {
        return customInfoMapper.analysisIndustry(dto);
    }

    @Override
    public List<CustomInfoBaseDto> getBaseCustomerInfoByIds(List<Long> ids) {
        return customInfoMapper.getBaseCustomerInfoByIds(ids);
    }

    @Override
    public void changeCustomerChannel(CustomerChannelUserDto dto) {
        customInfoMapper.changeCustomerChannel(dto);
    }


}
